package com.juli.school.app.controller;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.juli.school.service.bo.CidBo;
import com.juli.school.service.bo.ContestBo;
import com.juli.school.service.bo.ErBo;
import com.juli.school.service.bo.GroupBo;
import com.juli.school.service.bo.GroupSmsBo;
import com.juli.school.service.bo.HonorBo;
import com.juli.school.service.bo.JobBo;
import com.juli.school.service.bo.LegBo;
import com.juli.school.service.bo.LoveBo;
import com.juli.school.service.bo.MallBo;
import com.juli.school.service.bo.MindBo;
import com.juli.school.service.bo.MissBo;
import com.juli.school.service.bo.NewsBo;
import com.juli.school.service.bo.PointBo;
import com.juli.school.service.bo.SmartBo;
import com.juli.school.service.impl.AppRequestService;
import com.juli.school.utils.core.model.CommonResp;

@Controller
@RequestMapping("/ssm")
public class AppRequestController {
	
	@Resource
	AppRequestService appRequestService;
	
	@RequestMapping("/getTableMiss")
	@ResponseBody CommonResp<List<MissBo>> getTableMiss(MissBo miss){
		return appRequestService.getTableMiss(miss);
	}
	
	@RequestMapping("/getTableSmart")
	@ResponseBody CommonResp<List<SmartBo>> getTableSmart(SmartBo smart){
		return appRequestService.getTableSmart(smart);
	}
	
	@RequestMapping("/getTableLove")
	@ResponseBody CommonResp<List<LoveBo>> getTableLove(LoveBo love){
		return appRequestService.getTableLove(love);
	}
	
	@RequestMapping("/getTableGroup")
	@ResponseBody CommonResp<List<GroupBo>> getTableGroup(GroupBo group){
		return appRequestService.getTableGroup(group);
	}
	
	@RequestMapping("/getTableGroupSms")
	@ResponseBody CommonResp<List<GroupSmsBo>> getTableGroupSms(GroupSmsBo groupSms){
		return appRequestService.getTableGroupSms(groupSms);
	}
	
	@RequestMapping("/getTableNews")
	@ResponseBody CommonResp<List<NewsBo>> getTableNews(NewsBo news){
		return appRequestService.getTableNews(news);
	}
	
	@RequestMapping("/getTableContest")
	@ResponseBody CommonResp<List<ContestBo>> getTableContest(ContestBo contest){
		return appRequestService.getTableContest(contest);
	}
	
	@RequestMapping("/getTableMall")
	@ResponseBody CommonResp<List<MallBo>> getTableMall(MallBo mall){
		return appRequestService.getTableMall(mall);
	}
	
	@RequestMapping("/getTableJob")
	@ResponseBody CommonResp<List<JobBo>> getTableJob(JobBo job){
		return appRequestService.getTableJob(job);
	}
	
	@RequestMapping("/getTablePoint")
	@ResponseBody CommonResp<List<PointBo>> getTablePoint(PointBo point){
		return appRequestService.getTablePoint(point);
	}
	
	@RequestMapping("/getTableMind")
	@ResponseBody CommonResp<List<MindBo>> getTableMind(MindBo mind){
		return appRequestService.getTableMind(mind);
	}
	
	@RequestMapping("/getTableLeg")
	@ResponseBody CommonResp<List<LegBo>> getTableLeg(LegBo leg){
		return appRequestService.getTableLeg(leg);
	}
	
	@RequestMapping("/getTableEr")
	@ResponseBody CommonResp<List<ErBo>> getTableEr(ErBo er){
		return appRequestService.getTableEr(er);
	}
	
	@RequestMapping("/getTableHonor")
	@ResponseBody CommonResp<List<HonorBo>> getTableHonor(HonorBo honor){
		return appRequestService.getTableHonor(honor);
	}
	
	@RequestMapping("/getTableCid")
	@ResponseBody CommonResp<List<CidBo>> getTableCid(CidBo cid){
		return appRequestService.getTableCid(cid);
	}
}
